{anchor:msg_retrieveMultiple_0}
!! RetrieveMultiple message
RetrieveMultiple message
!!! Constructor
!!!! new COSA.Request.RetrieveMultiple(queryExpression, requestId)
|| Param || Type || Description ||
| queryExpression | [COSA.QueryExpression|COSA Namespace#lib_queryexpression_0] | Query Expression object |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Instance Properties
|| Name || Type || Description ||
| queryExpression | [COSA.QueryExpression|COSA Namespace#lib_queryexpression_0] | Query Expression object |
!!! Example
{code:javascript}
var fe_0 = new COSA.FilterExpression(COSA.Const.FilterOperator.AND,
        [
            new COSA.ConditionExpression('lastname', COSA.Const.ConditionOperator.Like, [new COSA.XrmString('#%')])
        ]
    ),
    qe_0 = new COSA.QueryExpression('contact', new COSA.ColumnSet(['lastname', 'emailaddress1', 'creditlimit']), fe_0);
qe_0.orders = [
    new COSA.OrderExpression('lastname', COSA.Const.OrderType.Asc),
    new COSA.OrderExpression('firstname', COSA.Const.OrderType.Desc)
];

var retrieveMultiple_0 = new COSA.Request.RetrieveMultiple(qe_0);
//message execution
retrieveMultiple_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Core.Execute(retrieveMultiple_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]